#include <iostream>
using namespace std;

enum city
{
    Beijing = 1,
    Shanghai,
    Tianjin = 6,
    Chongqing
};

enum weekday
{
    SUN,
    MON,
    TUE,
    WED,
    THU,
    FRI,
    SAT,
};

enum
{
    B = 1 << 10,
    KB,
    MB,
    GB
};

int main()
{
    // cout << B << KB << MB << GB << "\n";
    weekday d1, d2, d3, d4;
    d1 = SUN;
    d2 = weekday(2);
    d3 = (weekday)3;
    d4 = (weekday)10;
    cout << d1 << endl
         << d2 << endl
         << d3 << endl
         << d4 << endl
         << endl;
    cout << sizeof(int) << endl;
    int n;
    cout << "Input a city number: ";
    cin >> n;
    switch (n)
    {
    case Beijing:
        cout << "Beijing\n";
        break;
    case Chongqing:
        cout << "Chongqing\n";
        break;
    case Tianjin:
        cout << "Tianjing\n";
        break;
    case Shanghai:
        cout << "Shanghai\n";
        break;
    }
}